public class company {
    private String name;
    private int num;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    company() {}

    company(String name, int num) {
        this.name = name;
        this.num = num;
    }

    /*特殊方法*/
    void  output(){
        System.out.println(name+"公司,员工数："+num);
    }
}
